import 'package:flutter/material.dart';

class WidgetGet extends StatefulWidget {
  WidgetGet({Key key}) : super(key: key);

  _WidgetGetState createState() => _WidgetGetState();
}

class _WidgetGetState extends State<WidgetGet> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('data'),
      ),
      body: _widgetget,
    );
  }

  // 注意widget get 的用法

  Widget get _widgetget {
    return Center(
      child: Text('data'),
    );
  }
}
